package com.zxl.openapi.controller;

import org.springframework.boot.web.servlet.error.ErrorController;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
public class ZuulErrorController implements ErrorController {

    @RequestMapping("/error")
    public String error(){

        return "嘻嘻嘻 出错了吧";
    }

    @Override
    public String getErrorPath() {
        return "/error";
    }
}
